package cn.tradewin.pmp.services.activiti;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class ValidateActiviti implements JavaDelegate {

	@Override
	public void execute(DelegateExecution execution) throws Exception {
		System.out.println("execution id = " + execution.getId());
		String motivation = (String)execution.getVariable("motivation");
		System.out.println("motivation is " + motivation);
	}
}
